<?php
$this->breadcrumbs=array(
	'Questions'=>array('admin'),
	$model->title=>array('view','id'=>$model->id),
	'Update',
);

$this->menu=array(
	array('label'=>'List Questions', 'url'=>array('index')),
	array('label'=>'Create Questions', 'url'=>array('create')),
	array('label'=>'View Questions', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage Questions', 'url'=>array('admin')),
);
if(!empty($model->quiz_id))
{
$quiz=$model->quiz_id;
$name=Quiz::model()->find('id=?',array($quiz)); ?> 
<h1><?php echo "Update Question under Test ".$name->title;?></h1>

<?php 
}
elseif(!empty($_GET['id']))
{
$quiz=$_GET['id'];
$name=Quiz::model()->find('id=?',array($quiz)); ?> 
<h1><?php echo "Create Question under Quiz ".$name->title;?></h1>

<?php 
}
else {
?>
<h1>Create Questions</h1>
<?php }?>

<?php echo $this->renderPartial('_form', array('model'=>$model,'items'=>$items,'id'=>$id)); ?>